package com.job.yangshida.homework0707.oop2;

import com.job.yangshida.homework0707.oop1.Work;

/**
 * @author 杨士达
 * @version 1.0
 * @since 2022-07-08 17:18:57
 */
public class TestWorker {
    public static void main(String[] args) {
        Work work=new Work();
        work.show2();
        //work.show3();has private access in 'com.job.yang.homework0707.oop1.Work'
        System.out.println(work.age);
        //System.out.println(work.weight);
        //'weight' is not public in 'com.job.yang.homework0707.oop1.Work'.
        // Cannot be accessed from outside package外边的包不能访问
    }
}
